package com.gin.kotlin.no_gay_alliance.database.entity

import android.os.Parcelable
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import kotlinx.parcelize.Parcelize
import java.time.ZonedDateTime

/**
 * 主题书签
 * @property id 主键（自动生成）
 * @property topicId 主题ID
 * @property page 页码
 * @property timestamp 创建时间
 * @property floorNumber 楼层号
 * @property userId (只看TA模式)用户id
 * @property username (只看TA模式)用户名
 * @property remark 备注
 * @constructor
 */
@Entity
@Parcelize
data class TopicBookmark(
    @PrimaryKey(true)
    val id: Long,
    @ColumnInfo(index = true)
    val topicId: Long,
    val page:Int,
    val floorNumber:Int,
    val timestamp:ZonedDateTime,
    val userId: Long? = null,
    val username: String? = null,
    val remark: String? = null,
) : Parcelable
